import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-08
 * Time: 8:55
 */
public class NameComparator implements Comparator<Student> {
    public int compare(Student o1,Student o2) {
        return o1.name.compareTo(o2.name);
    }
}
